﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace MyERP.Controllers
{
    /// <summary>
    /// 销售管理
    /// </summary>
    /// 
    [Authorize(Roles = "admin,q3")]
    public class SaleController : Controller
    {
        /// <summary>
        /// 添加销售单
        /// </summary>
        /// <returns></returns>
        public IActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 销售查询
        /// </summary>
        /// <returns></returns>
        public IActionResult Query()
        {
            return View();
        }
        /// <summary>
        /// 修改销售单
        /// </summary>
        /// <returns></returns>
        public IActionResult Edit(string? id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return Redirect("/");
            }
            return View();
        }
    }
}
